package com.letv.app.ljodfh.ui.util;

import com.ruihang.generalibrary.utils.DateUtils;
import com.letv.app.ljodfh.beans.NewsDate;

import java.util.Comparator;

/**
 * Created by liuyu on 2017/9/1.
 */

public class NewsDateComparator implements Comparator<NewsDate> {
    @Override
    public int compare(NewsDate o1, NewsDate o2) {
        return DateUtils.getDataDate(o2).compareTo(DateUtils.getDataDate(o1));
    }
}
